<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Repeat : Until</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="5">Repeat : Until</font></b></p>

<br><b>Syntax</b><blockquote><pre><font face="Courier New, Courier, mono"size="2"><b><font color="#006666">Repeat</font></b>
  ...
<b><font color="#006666">Until</font></b> &lt;expression&gt; [or <b><font color="#006666">Forever</font></b>] 
</font></pre></blockquote>
<b>Description</b><br><blockquote>





This function will loop until the &lt;expression&gt; becomes true. The number of loops is unlimited. 
If an endless loop is needed then use the <b><font color="#006666">Forever</font></b> keyword instead of <b><font color="#006666">Until</font></b>. 

With the <a href="../reference/break_continue.html">Break</a> command, it is possible to exit the 
<b><font color="#006666">Repeat</font></b> : <b><font color="#006666">Until</font></b> loop during any iteration. With <a href="../reference/break_continue.html">Continue</a> 
command, the end of the current iteration may be skipped. 

 

</blockquote><p><b>Example</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2">  a=0
  <b><font color="#006666">Repeat</font></b> 
    a=a+1
  <b><font color="#006666">Until</font></b> a&gt;100 
</font></pre>



This will loop until "a" takes a value &gt; to 100, (it will loop 101 times). 
 
</body></html>